package cn.xyhelp.shop.mall.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品销售单元表
 * </p>
 *
 * @author violetfreesia
 * @since 2022-02-15
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sale_unit")
public class SaleUnit extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 销售单元名称
     */
    @TableField("name")
    private String name;

    /**
     * 图片
     */
    @TableField("img_url")
    private String imgUrl;

    /**
     * 原价
     */
    @TableField("old_price")
    private Long oldPrice;

    /**
     * 售价
     */
    @TableField("sell_price")
    private Long sellPrice;

    /**
     * 最大知行币抵扣
     */
    @TableField("max_coin")
    private Integer maxCoin;

    @TableField("goods_id")
    private Integer goodsId;


}
